package org.wzl.frontendtest.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wzl.frontendtest.core.FrontComponentAnalyze;
import org.wzl.frontendtest.core.bo.FrontCodeFileRelation;

import java.util.List;

@RestController
public class TestController {

    @Resource
    private FrontComponentAnalyze frontComponentAnalyze;

    @GetMapping("/test")
    public List<FrontCodeFileRelation> test(String path) {
        return frontComponentAnalyze.analyze(path);
    }

}
